
CXX = g++

OBJFILES = glDrawFunctions.o arcball.o texture.o 
###################################
all: $(OBJFILES) 
	cd core && $(MAKE) 
	cd meshdef && $(MAKE)
	cd RiggingSkinning && $(MAKE)
#	cd CharAnim && $(MAKE)
#	cd ArapMeter && $(MAKE)
#	cd MaterialAware && $(MAKE)
#	cd examples && $(MAKE)

.cpp.o: $*.h
	@echo "Compiling C++ code ...."
	$(CXX) -c -O2 $*.cpp

clean: 
	rm *.o
	cd core && $(MAKE) clean
	cd meshdef && $(MAKE) clean
	cd ArapMeter && $(MAKE) clean
	cd CharAnim && $(MAKE) clean
	cd RiggingSkinning && $(MAKE) clean
	cd MaterialAware && $(MAKE) clean
	cd examples && $(MAKE) clean
